import {Interaction} from './interaction.interface'
import imgCompressor from '../clz/imgCompress'
export class WebService implements Interaction{
	login() {
		return new Promise((resolve,reject) => {
			resolve('asd')
		})
	}
	quit() {
		// this.window.android.ksdBack();
	}
	getcamera() {
		return ''
	}
	compressImage(options:{
		path:string,
		success:Function
	}){
		console.log('web---------------')
		const compressor = new imgCompressor();
		compressor.compressByFile(options.path).then((res:any) => {
			options.success({
				tempFilePath:res
			})
		})
	}
}